home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1996 #1 / Amiga Plus CD - 1996 - No. 1.iso / pd / grafik / jpeg_v6 / source / jpeg-6 / makefile.cfg < prev    next >
Makefile  |  1995-07-24  |  14KB  |  273 lines

  1. # Makefile for Independent JPEG Group's software
  2.  
  3. # makefile.cfg is edited by configure to produce a custom Makefile.
  4.  
  5. # Read installation instructions before saying "make" !!
  6.  
  7. # For compiling with source and object files in different directories.
  8. srcdir = @srcdir@
  9. VPATH = @srcdir@
  10.  
  11. # Where to install the programs and man pages.
  12. prefix = @prefix@
  13. exec_prefix = @exec_prefix@
  14. bindir = $(exec_prefix)/bin
  15. libdir = $(exec_prefix)/lib
  16. includedir = $(prefix)/include
  17. binprefix =
  18. manprefix =
  19. manext = 1
  20. mandir = $(prefix)/man/man$(manext)
  21.  
  22. # The name of your C compiler:
  23. CC= @CC@
  24.  
  25. # You may need to adjust these cc options:
  26. CFLAGS= @CFLAGS@ @CPPFLAGS@ @INCLUDEFLAGS@
  27. # Generally, we recommend defining any configuration symbols in jconfig.h,
  28. # NOT via -D switches here.
  29. # However, any special defines for ansi2knr.c may be included here:
  30. ANSI2KNRFLAGS= @ANSI2KNRFLAGS@
  31.  
  32. # Link-time cc options:
  33. LDFLAGS= @LDFLAGS@
  34.  
  35. # To link any special libraries, add the necessary -l commands here.
  36. LDLIBS= @LIBS@
  37.  
  38. # Put here the object file name for the correct system-dependent memory
  39. # manager file.  For Unix this is usually jmemnobs.o, but you may want
  40. # to use jmemansi.o or jmemname.o if you have limited swap space.
  41. SYSDEPMEM= @MEMORYMGR@
  42.  
  43. # miscellaneous OS-dependent stuff
  44. SHELL= /bin/sh
  45. # linker
  46. LN= $(CC)
  47. # file deletion command
  48. RM= rm -f
  49. # file rename command
  50. MV= mv
  51. # library (.a) file creation command
  52. AR= ar rc
  53. # second step in .a creation (use "touch" if not needed)
  54. AR2= @RANLIB@
  55. # installation program
  56. INSTALL= @INSTALL@
  57. INSTALL_PROGRAM= @INSTALL_PROGRAM@
  58. INSTALL_DATA= @INSTALL_DATA@
  59.  
  60. # End of configurable options.
  61.  
  62.  
  63. # source files: JPEG library proper
  64. LIBSOURCES= jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c \
  65.         jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c \
  66.         jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c \
  67.         jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c \
  68.         jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c \
  69.         jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c \
  70.         jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c \
  71.         jquant2.c jutils.c jmemmgr.c jmemansi.c jmemname.c jmemnobs.c \
  72.         jmemdos.c
  73. # source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
  74. APPSOURCES= cjpeg.c djpeg.c jpegtran.c cdjpeg.c rdcolmap.c rdswitch.c \
  75.         rdjpgcom.c wrjpgcom.c rdppm.c wrppm.c rdgif.c wrgif.c rdtarga.c \
  76.         wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c
  77. SOURCES= $(LIBSOURCES) $(APPSOURCES)
  78. # files included by source files
  79. INCLUDES= jchuff.h jdhuff.h jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h \
  80.         jpegint.h jpeglib.h jversion.h cdjpeg.h cderror.h
  81. # documentation, test, and support files
  82. DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \
  83.         wrjpgcom.1 wizard.doc example.c libjpeg.doc structure.doc \
  84.         coderules.doc filelist.doc change.log
  85. MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.bcc \
  86.         makefile.mc6 makefile.dj makefile.wat makcjpeg.st makdjpeg.st \
  87.         makljpeg.st maktjpeg.st makefile.manx makefile.sas makefile.mms \
  88.         makefile.vms makvms.opt
  89. CONFIGFILES= jconfig.cfg jconfig.manx jconfig.sas jconfig.st jconfig.bcc \
  90.         jconfig.mc6 jconfig.dj jconfig.wat jconfig.vms
  91. OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm
  92. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg testprog.jpg \
  93.         testimgp.jpg
  94. DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
  95.         $(OTHERFILES) $(TESTFILES)
  96. # library object files common to compression and decompression
  97. COMOBJECTS= jcomapi.o jutils.o jerror.o jmemmgr.o $(SYSDEPMEM)
  98. # compression library object files
  99. CLIBOBJECTS= jcapimin.o jcapistd.o jctrans.o jcparam.o jdatadst.o jcinit.o \
  100.         jcmaster.o jcmarker.o jcmainct.o jcprepct.o jccoefct.o jccolor.o \
  101.         jcsample.o jchuff.o jcphuff.o jcdctmgr.o jfdctfst.o jfdctflt.o \
  102.         jfdctint.o
  103. # decompression library object files
  104. DLIBOBJECTS= jdapimin.o jdapistd.o jdtrans.o jdatasrc.o jdmaster.o \
  105.         jdinput.o jdmarker.o jdhuff.o jdphuff.o jdmainct.o jdcoefct.o \
  106.         jdpostct.o jddctmgr.o jidctfst.o jidctflt.o jidctint.o jidctred.o \
  107.         jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o
  108. # These objectfiles are included in libjpeg.a
  109. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  110. # object files for sample applications (excluding library files)
  111. COBJECTS= cjpeg.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o rdswitch.o \
  112.         cdjpeg.o
  113. DOBJECTS= djpeg.o wrppm.o wrgif.o wrtarga.o wrrle.o wrbmp.o rdcolmap.o \
  114.         cdjpeg.o
  115. TROBJECTS= jpegtran.o rdswitch.o cdjpeg.o
  116.  
  117.  
  118. all: @ANSI2KNR@ libjpeg.a cjpeg djpeg jpegtran rdjpgcom wrjpgcom
  119.  
  120. # This rule causes ansi2knr to be invoked.
  121. @ISANSICOM@.c.o:
  122. @ISANSICOM@    ./ansi2knr $(srcdir)/$*.c T$*.c
  123. @ISANSICOM@    $(CC) $(CFLAGS) -c T$*.c
  124. @ISANSICOM@    $(RM) T$*.c $*.o
  125. @ISANSICOM@    $(MV) T$*.o $*.o
  126.  
  127. ansi2knr: ansi2knr.c
  128.     $(CC) $(CFLAGS) $(ANSI2KNRFLAGS) -o ansi2knr ansi2knr.c
  129.  
  130. libjpeg.a: @ANSI2KNR@ $(LIBOBJECTS)
  131.     $(RM) libjpeg.a
  132.     $(AR) libjpeg.a  $(LIBOBJECTS)
  133.     $(AR2) libjpeg.a
  134.  
  135. cjpeg: $(COBJECTS) libjpeg.a
  136.     $(LN) $(LDFLAGS) -o cjpeg $(COBJECTS) libjpeg.a $(LDLIBS)
  137.  
  138. djpeg: $(DOBJECTS) libjpeg.a
  139.     $(LN) $(LDFLAGS) -o djpeg $(DOBJECTS) libjpeg.a $(LDLIBS)
  140.  
  141. jpegtran: $(TROBJECTS) libjpeg.a
  142.     $(LN) $(LDFLAGS) -o jpegtran $(TROBJECTS) libjpeg.a $(LDLIBS)
  143.  
  144. rdjpgcom: rdjpgcom.o
  145.     $(LN) $(LDFLAGS) -o rdjpgcom rdjpgcom.o $(LDLIBS)
  146.  
  147. wrjpgcom: wrjpgcom.o
  148.     $(LN) $(LDFLAGS) -o wrjpgcom wrjpgcom.o $(LDLIBS)
  149.  
  150. jconfig.h: jconfig.doc
  151.     echo You must prepare a system-dependent jconfig.h file.
  152.     echo Please read the installation directions in install.doc.
  153.     exit 1
  154.  
  155. install: cjpeg djpeg jpegtran rdjpgcom wrjpgcom
  156.     $(INSTALL_PROGRAM) cjpeg $(bindir)/$(binprefix)cjpeg
  157.     $(INSTALL_PROGRAM) djpeg $(bindir)/$(binprefix)djpeg
  158.     $(INSTALL_PROGRAM) jpegtran $(bindir)/$(binprefix)jpegtran
  159.     $(INSTALL_PROGRAM) rdjpgcom $(bindir)/$(binprefix)rdjpgcom
  160.     $(INSTALL_PROGRAM) wrjpgcom $(bindir)/$(binprefix)wrjpgcom
  161.     $(INSTALL_DATA) $(srcdir)/cjpeg.1 $(mandir)/$(manprefix)cjpeg.$(manext)
  162.     $(INSTALL_DATA) $(srcdir)/djpeg.1 $(mandir)/$(manprefix)djpeg.$(manext)
  163.     $(INSTALL_DATA) $(srcdir)/jpegtran.1 $(mandir)/$(manprefix)jpegtran.$(manext)
  164.     $(INSTALL_DATA) $(srcdir)/rdjpgcom.1 $(mandir)/$(manprefix)rdjpgcom.$(manext)
  165.     $(INSTALL_DATA) $(srcdir)/wrjpgcom.1 $(mandir)/$(manprefix)wrjpgcom.$(manext)
  166.  
  167. install-lib: libjpeg.a install-headers
  168.     $(INSTALL_DATA) libjpeg.a $(libdir)/$(binprefix)libjpeg.a
  169.  
  170. install-headers: jconfig.h
  171.     $(INSTALL_DATA) jconfig.h $(includedir)/jconfig.h
  172.     $(INSTALL_DATA) $(srcdir)/jpeglib.h $(includedir)/jpeglib.h
  173.     $(INSTALL_DATA) $(srcdir)/jmorecfg.h $(includedir)/jmorecfg.h
  174.     $(INSTALL_DATA) $(srcdir)/jerror.h $(includedir)/jerror.h
  175.  
  176. clean:
  177.     $(RM) *.o cjpeg djpeg jpegtran libjpeg.a rdjpgcom wrjpgcom
  178.     $(RM) ansi2knr core testout* config.log config.status
  179.  
  180. distribute:
  181.     $(RM) jpegsrc.tar*
  182.     tar cvf jpegsrc.tar $(DISTFILES)
  183.     compress -v jpegsrc.tar
  184.  
  185. test: cjpeg djpeg jpegtran
  186.     $(RM) testout*
  187.     ./djpeg -dct int -ppm -outfile testout.ppm  $(srcdir)/testorig.jpg
  188.     ./djpeg -dct int -gif -outfile testout.gif  $(srcdir)/testorig.jpg
  189.     ./cjpeg -dct int -outfile testout.jpg  $(srcdir)/testimg.ppm
  190.     ./djpeg -dct int -ppm -outfile testoutp.ppm $(srcdir)/testprog.jpg
  191.     ./cjpeg -dct int -progressive -opt -outfile testoutp.jpg $(srcdir)/testimg.ppm
  192.     ./jpegtran -outfile testoutt.jpg $(srcdir)/testprog.jpg
  193.     cmp $(srcdir)/testimg.ppm testout.ppm
  194.     cmp $(srcdir)/testimg.gif testout.gif
  195.     cmp $(srcdir)/testimg.jpg testout.jpg
  196.     cmp $(srcdir)/testimg.ppm testoutp.ppm
  197.     cmp $(srcdir)/testimgp.jpg testoutp.jpg
  198.     cmp $(srcdir)/testorig.jpg testoutt.jpg
  199.  
  200. check: test
  201.  
  202. # GNU Make likes to know which target names are not really files to be made:
  203. .PHONY: all install install-lib install-headers clean distribute test check
  204.  
  205.  
  206. jcapimin.o: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  207. jcapistd.o: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  208. jccoefct.o: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  209. jccolor.o: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  210. jcdctmgr.o: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  211. jchuff.o: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  212. jcinit.o: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  213. jcmainct.o: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  214. jcmarker.o: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  215. jcmaster.o: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  216. jcomapi.o: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  217. jcparam.o: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  218. jcphuff.o: jcphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
  219. jcprepct.o: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  220. jcsample.o: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  221. jctrans.o: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  222. jdapimin.o: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  223. jdapistd.o: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  224. jdatadst.o: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  225. jdatasrc.o: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
  226. jdcoefct.o: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  227. jdcolor.o: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  228. jddctmgr.o: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  229. jdhuff.o: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  230. jdinput.o: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  231. jdmainct.o: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  232. jdmarker.o: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  233. jdmaster.o: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  234. jdmerge.o: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  235. jdphuff.o: jdphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
  236. jdpostct.o: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  237. jdsample.o: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  238. jdtrans.o: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  239. jerror.o: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
  240. jfdctflt.o: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  241. jfdctfst.o: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  242. jfdctint.o: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  243. jidctflt.o: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  244. jidctfst.o: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  245. jidctint.o: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  246. jidctred.o: jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
  247. jquant1.o: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  248. jquant2.o: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  249. jutils.o: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
  250. jmemmgr.o: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  251. jmemansi.o: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  252. jmemname.o: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  253. jmemnobs.o: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  254. jmemdos.o: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
  255. cjpeg.o: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  256. djpeg.o: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  257. jpegtran.o: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
  258. cdjpeg.o: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  259. rdcolmap.o: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  260. rdswitch.o: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  261. rdjpgcom.o: rdjpgcom.c jinclude.h jconfig.h
  262. wrjpgcom.o: wrjpgcom.c jinclude.h jconfig.h
  263. rdppm.o: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  264. wrppm.o: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  265. rdgif.o: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  266. wrgif.o: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  267. rdtarga.o: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  268. wrtarga.o: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  269. rdbmp.o: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  270. wrbmp.o: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  271. rdrle.o: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  272. wrrle.o: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
  273.